efform_onload = function ()
{
	efgrid.submitInqu( "ef_grid_result", "AQ","AQCI60","query"); 
};  
button_query_onclick = function () 
{   	
	efgrid.submitInqu( "ef_grid_result", "AQ","AQCI60","query");
}

//渲染按钮
efgrid_onCellDisplayReady = function(div_node_html, row_index, col_index, col_value_c, display_value, grid_id) {
	if(grid_id == "ef_grid_result"){
        var grid = efgrid.getGridObject( grid_id );
        var columnEname = grid.getColumn(col_index, TYPE_DATA).getEname();
        if(columnEname == "moreAction") {
            var fdKeyId = grid.getCellValueByColumnName(row_index,"fdKeyId");

            return "<div align='center' efval=''>"+
        		(fdKeyId==""?"":"<a href='#' onclick='onDetailClick(\""+fdKeyId+"\")'>查看详情</a>")+ 
        		"</div>";
        }
	}
}
onDetailClick=function(fdKeyId){
	var url = "DispatchAction.do?efFormEname=AQCI61";
	url = url + "&inqu_status-0-fdKeyId="+fdKeyId;
	EFColorbox({href:url,title:"下井详情",width:"60%", height:"450", iframe:true});
}
